package com.bilibili.netty.im.domain;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @program: rgs-study0project
 * @description:
 * @author: Mr.Ren
 * @create: 2023-10-30 23:09
 **/
@Data
@AllArgsConstructor
public class Result {
    private Integer code;

    private String message;

    private String content;

    public Result() {
    }

    public static Result success(String content){
        return new Result(200,"发送成功",content);
    }

    public static Result fail(String message){
        return new Result(200,message,null);
    }
}
